package com.ruoyi.samplemod.domain.entity;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.samplemod.converter.SysDeptConverter;

public class Sample {

    @ExcelProperty("ID")
    private Long Id;
    @ExcelProperty(value ="部门", converter = SysDeptConverter.class)
    private SysDept sysDept;
    @ExcelProperty("样品名称")
    private String sampleName;
    @ExcelProperty("样品编号")
    private String sampleCode;
    @ExcelProperty("制造承认")
    private String reviewerZ;
    @ExcelProperty("技术承认")
    private String reviewerJ;
    @ExcelProperty("品管承认")
    private String reviewerP;
    @ExcelProperty("最终承认")
    private String reviewerF;
    @ExcelProperty("有效月份")
    private int validityPeriod;
    @ExcelProperty("录入时间")
    private String enterTime;
    @ExcelProperty("制作人")
    private String user;
    @ExcelProperty("有效期限")
    private String lastTime;

    private String bu;

    public Sample() {
    }

    public String getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(String enterTime) {
        this.enterTime = enterTime;
    }

    public String getLastTime() {
        return lastTime;
    }

    public void setLastTime(String lastTime) {
        this.lastTime = lastTime;
    }

    public Sample(Long id, SysDept sysDept, String sampleName, String sampleCode, String reviewerZ, String reviewerJ, String reviewerP, String reviewerF, int validityPeriod, String enterTime, String user, String lastTime) {
        Id = id;
        this.sysDept = sysDept;
        this.sampleName = sampleName;
        this.sampleCode = sampleCode;
        this.reviewerZ = reviewerZ;
        this.reviewerJ = reviewerJ;
        this.reviewerP = reviewerP;
        this.reviewerF = reviewerF;
        this.validityPeriod = validityPeriod;
        this.enterTime = enterTime;
        this.user = user;
        this.lastTime = lastTime;
    }

    public Long getId() {
        return Id;
    }

    public void setId(Long id) {
        Id = id;
    }

    public SysDept getSysDept() {
        return sysDept;
    }

    public Long getSysDeptId(){
        return this.sysDept.getDeptId();
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public String getSampleName() {
        return sampleName;
    }

    public void setSampleName(String sampleName) {
        this.sampleName = sampleName;
    }

    public String getSampleCode() {
        return sampleCode;
    }

    public void setSampleCode(String sampleCode) {
        this.sampleCode = sampleCode;
    }

    public String getReviewerZ() {
        return reviewerZ;
    }



    public void setReviewerZ(String reviewerZ) {
        this.reviewerZ = reviewerZ;
    }

    public String getReviewerJ() {
        return reviewerJ;
    }


    public void setReviewerJ(String reviewerJ) {
        this.reviewerJ = reviewerJ;
    }

    public String getReviewerP() {
        return reviewerP;
    }


    public void setReviewerP(String reviewerP) {
        this.reviewerP = reviewerP;
    }

    public int getValidityPeriod() {
        return validityPeriod;
    }

    public void setValidityPeriod(int validityPeriod) {
        this.validityPeriod = validityPeriod;
    }

    public String getReviewerF() {
        return reviewerF;
    }

    public void setReviewerF(String reviewerF) {
        this.reviewerF = reviewerF;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getBu() {
        return bu;
    }

    public void setBu(String bu) {
        this.bu = bu;
    }

    @Override
    public String toString() {
        return "Sample{" +
                "Id=" + Id +
                ", sysDept=" + sysDept +
                ", sampleName='" + sampleName + '\'' +
                ", sampleCode='" + sampleCode + '\'' +
                ", reviewerZ='" + reviewerZ + '\'' +
                ", reviewerJ='" + reviewerJ + '\'' +
                ", reviewerP='" + reviewerP + '\'' +
                ", reviewerF='" + reviewerF + '\'' +
                ", validityPeriod=" + validityPeriod +
                ", enterTime='" + enterTime + '\'' +
                ", user='" + user + '\'' +
                ", lastTime='" + lastTime + '\'' +
                ", bu='" + bu + '\'' +
                '}';
    }
}
